package com.lh.rights.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author jxy
 * @since 2021-04-20
 */
public class MaterialCenter implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 素材类型（text，picture，video，webpage，file）
     */
    private String materialType;

    /**
     * 文本内容（文本型素材专有）
     */
    private String content;

    /**
     * 名称
     */
    private String name;

    /**
     * 地址（音视频，图片，文件地址）
     */
    private String address;

    /**
     * 标题
     */
    private String title;

    /**
     * web网页网址
     */
    private String linkAddress;

    /**
     * 封面图
     */
    private String coverMap;

    /**
     * 创建人
     */
    private String founder;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改人
     */
    private String reviser;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 分组id，关联分组（关联可见范围）
     */
    private Integer materialGroupId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMaterialType() {
        return materialType;
    }

    public void setMaterialType(String materialType) {
        this.materialType = materialType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLinkAddress() {
        return linkAddress;
    }

    public void setLinkAddress(String linkAddress) {
        this.linkAddress = linkAddress;
    }

    public String getCoverMap() {
        return coverMap;
    }

    public void setCoverMap(String coverMap) {
        this.coverMap = coverMap;
    }

    public String getFounder() {
        return founder;
    }

    public void setFounder(String founder) {
        this.founder = founder;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getReviser() {
        return reviser;
    }

    public void setReviser(String reviser) {
        this.reviser = reviser;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getMaterialGroupId() {
        return materialGroupId;
    }

    public void setMaterialGroupId(Integer materialGroupId) {
        this.materialGroupId = materialGroupId;
    }

    @Override
    public String toString() {
        return "MaterialCenter{" +
                "id=" + id +
                ", materialType=" + materialType +
                ", content=" + content +
                ", name=" + name +
                ", address=" + address +
                ", title=" + title +
                ", linkAddress=" + linkAddress +
                ", coverMap=" + coverMap +
                ", founder=" + founder +
                ", createTime=" + createTime +
                ", reviser=" + reviser +
                ", updateTime=" + updateTime +
                ", materialGroupId=" + materialGroupId +
                "}";
    }
}
